<?php

/*
 * Framework Version 0.2
 */

/*
 * ---------------------------------------------------------------
 * APPLICATION ENVIRONMENT
 * ---------------------------------------------------------------
 *
 * You can load different configurations depending on your
 * current environment. Setting the environment also influences
 * things like logging and error reporting.
 *
 * This can be set to anything, but default usage is:
 *
 *     development
 *     testing
 *     production
 *
 * NOTE: If you change these, also change the error_reporting() code below
 *
 */
define('ENVIRONMENT', 'development');

/*
 * ---------------------------------------------------------------
 * ERROR REPORTING
 * ---------------------------------------------------------------
 *
 * Different environments will require different levels of error reporting.
 * By default development will show errors but testing and live will hide them.
 */

if (defined('ENVIRONMENT')) {
    switch (ENVIRONMENT) {
        case 'development':
            error_reporting(E_ALL);
            break;

        case 'testing':
        case 'production':
            error_reporting(0);
            break;

        default:
            exit('The application environment is not set correctly.');
    }
}

/*
 * ---------------------------------------------------------------
 * APPLICATION ROOT PATH
 * ---------------------------------------------------------------
 *
 * If you used a different path for the application, change it here as well
 * so that the core classes know where to look for other files.
 *
 */
define('APPLICATION_ROOT_PATH', dirname(__FILE__) . '/application/');

/*
 * ---------------------------------------------------------------
 * APPLICATION Home Page
 * ---------------------------------------------------------------
 *
 * The name of the controller that will server as the default landing page
 * of this application. The index method will be called automatically as usual.
 * 
 */
define('APPLICATION_HOME_PAGE', 'Home');

require_once '/application/Initialization.php';
